package com.group.eams.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.eams.pojo.dto.AssetBorrowQueryDto;
import com.group.eams.pojo.dto.FixedAssetDetailQueryDto;
import com.group.eams.pojo.entity.AssetBorrow;
import com.group.eams.pojo.vo.AssetBorrowListVo;
import com.group.eams.pojo.vo.FixedAssetDetailListVo;

/**
* @author 恩哲欣
* @description 针对表【asset_borrow(资产借用表)】的数据库操作Service
* @createDate 2024-10-29 16:09:34
*/
public interface AssetBorrowService extends IService<AssetBorrow> {

    Page<AssetBorrowListVo> findAssetBorrowList(AssetBorrowQueryDto assetBorrowQueryDto);
    //根据单号查询借用信息
    AssetBorrow findByApplicationNum(String applicationNum);

    //查询借用资产详情
    Page<FixedAssetDetailListVo> findByQueryDto(FixedAssetDetailQueryDto fixedAssetDetailQueryDto);

    //根据单号进行删除
    int deleteByApplicationNum(String applicationNum);

}
